#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using UTable.Input;
using UTable.Input.MultiTouch;
using UTable.Objects;
using UTable.Objects.Controls;

namespace UTable.Objects.Controls
{
	/// <summary>
	/// Interaction logic for UBookControlPage.xaml
	/// </summary>
	public partial class UBookControlPage : UUserControl
	{
		public UBookControlPage()
		{
			InitializeComponent();
			this.DataContext = this;
		}

		public String PageSource
		{
			get { return (String)GetValue(PageSourceProperty); }
			set { SetValue(PageSourceProperty, value); }
		}

		public static readonly DependencyProperty PageSourceProperty =
			DependencyProperty.Register("PageSource", typeof(String), typeof(UBookControlPage), new UIPropertyMetadata(String.Empty));

        public UPaintCanvas GetInkCanvas()
        {
            return this.InkCanvas;
        }
	}
}
